setScreenReaderFocusable

open fun setScreenReaderFocusable(@NonNull view: View, screenReaderFocusable: Boolean)(source)

Sets whether this View should be a focusable element for screen readers and include non-focusable Views from its subtree when providing feedback.

Note: this is similar to using android:focusable, but does not impact input focus behavior.

This can be used to group related content.

Parameters

view

The view whose title should be set

screenReaderFocusable

Whether the view should be treated as a unit by screen reader accessibility tools.

Compatibility:

  • API <19: No-op